{% extends "./layout/layout.html" %}
{# 引入宏 #}
{% import './macros/blog-list.html' as list %}
{% import './macros/loadMore.html' as loadBtn %}
{% import './macros/user-info.html' as user %}
{% import './macros/fans.html' as fans %}
{% import './macros/follower.html' as follower %}
{% import './macros/input.html' as inputTag %}
{% block headCss %}
<link rel="stylesheet" href="/css/home.css" />
<link rel="stylesheet" href="/css/profile.css">
<link rel="stylesheet" href="/css/fans.css">
{% endblock %}
{% block content %}
<!-- <h1>栅格系统，整向分成12格</h1> -->
<div class="container">
  <div class="row">   
    <!--左侧-->        
    <div class="col-lg-8 left">           
      {{inputTag.input()}}
      <div class="item-wrapper">
        {% if blogList.length > 0 %}
        {{ list.list(blogList,isCanReply=true) }}
        {% else %}
        <p>暂无数据</p>
        {% endif %}
      </div>
      {{loadBtn.loadMore(
      pageIndex,
      pageSize,
      count,
      isCanReply=true,
      api='/api/blog/loadHomeBlogMore/'
    )}}
              
    </div>
  </div>

          
  <!--右侧-->
          
  <div class="col-lg-4 right">
    <!-- 个人信息 -->
    {{user.userInfo(
              user = userData.userInfo,
              isMe = userData.isMe,
              isMeFollow = userData.isMeFollow,
              atCount = userData.atCount
            )}}
    <!-- 粉丝列表 -->
    <div>
      {{fans.showFans(count=userData.fansData.count,userList=userData.fansData.fansList)}}
    </div>
    <hr>
    <!-- 关注列表 -->
    <div>
      {{follower.showFollower(count=userData.followData.count,userList=userData.followData.followList)}}
    </div>
    <hr>
            
  </div>
</div>
{% endblock %} {% block js %}
<script>

</script>
{% endblock %}